package android.slc.app.startup;

import android.slc.app.startup.task.*;
import android.slc.box.anchors.task.Task;
import android.slc.box.anchors.task.TaskCreator;
import org.jetbrains.annotations.NotNull;

public class TaskAppCreate implements TaskCreator {

    public TaskAppCreate() {
    }

    @NotNull
    @Override
    public Task createTask(@NotNull String s) {
        switch (s) {
            case TaskConstant.TASK_FIRST:
                return new TaskFirst();
            case TaskConstant.TASK_THIRD_PART:
                return new TaskThirdParty();
            case TaskConstant.TASK_SLC:
                return new TaskSlc();
        }
        throw new IllegalStateException("task name is not defined");
    }
}
